<?php
/**
 * @authors liuqinglin 
 * @email (2961181429@qq.com) 
 * @(https://my.oschina.net/shp32131)
 * @date  2016-12-05 23:46:23
 */

class Ajax_model extends CI_Model {
    
public function get_article_category()
{
	$this->load->database();
	$mytable = $this->db->dbprefix('article_category');
	$sql = "SELECT name FROM $mytable ORDER BY id DESC";
	$result = $this->db->query($sql);
	if($result)
	{
		return $result->result_array();
	}
	return FALSE;
}

}